<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  <?php language_attributes(); ?>>

<head>
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	
	<?php if (is_search()) { ?>
	   <meta name="robots" content="noindex, nofollow" /> 
	<?php } ?>

	<title>
		   <?php
		      if (function_exists('is_tag') && is_tag()) {
		         single_tag_title("Tag Archive for &quot;"); echo '&quot; - '; }
		      elseif (is_archive()) {
		         wp_title(''); echo ' Archive - '; }
		      elseif (is_search()) {
		         echo 'Search for &quot;'.wp_specialchars($s).'&quot; - '; }
		      elseif (!(is_404()) && (is_single()) || (is_page())) {
		         wp_title(''); echo ' - '; }
		      elseif (is_404()) {
		         echo 'Not Found - '; }
		      if (is_home()) {
		         bloginfo('name'); echo ' - '; bloginfo('description'); }
		      else {
		          bloginfo('name'); }
		      if ($paged>1) {
		         echo ' - page '. $paged; }
		   ?>
	</title>

	<link rel="shortcut icon" href="/favicon.ico">
	
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" >
	<link rel="stylesheet" href="<?php bloginfo('template_directory');?>/css/woocommerce.css" type="text/css" media="screen" >
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
	
	<style type="text/css">
	.nivo-controlNav{
		display: none;
	}
	</style>

	<!--[if lt IE 7]>
		<link rel="stylesheet" type="text/css" href="css/ie6style.css" />
		<script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script>
		<script type="text/javascript">DD_belatedPNG.fix('img#logo');</script>
	<![endif]-->
	<!--[if IE 7]>
		<link rel="stylesheet" type="text/css" href="css/ie7style.css" />
	<![endif]-->
	<!--[if IE 8]>
		<link rel="stylesheet" type="text/css" href="css/ie8style.css" />
	<![endif]-->


	<?php if ( is_singular() ) wp_enqueue_script('comment-reply'); ?>
	<?php wp_head(); ?>
	
</head>

<body <?php if (is_home()) echo(' id="home"'); ?>  <?php body_class(); ?>>

		<div id="page-wrap">
		<div id="header">
			<div class="container clearfix">
				<a href="<?php echo esc_url( home_url( '/' ) ); ?>">				
					<img src="<?php echo bloginfo('template_directory'); ?>/images/logo.png" alt="eStore Theme" id="logo"/>					
				</a>

				<?php 

				$menuClass = 'nav superfish clearfix sf-js-enabled';
				$menuID = 'top-menu';
				$secondaryNav = '';
				if (function_exists('wp_nav_menu')) {
					$secondaryNav = wp_nav_menu( array(
						'menu' => 'Header_Nav_Menu',
						'container' => '',
						'menu_class' => $menuClass,
						'menu_id' => $menuID
			 		)); 					
				};
				
				echo $secondaryNav;
				?>		

				<!-- <img src="<?php echo bloginfo('template_directory'); ?>/images/estore.png" alt="eStore Theme" id="estore"/> -->

				<!-- <img src="<?php echo bloginfo('template_directory') ?>/images/thanh-toan-khi-nhan.png" alt="" class="payment_info" />
				<img src="<?php echo bloginfo('template_directory') ?>/images/giao-hang-toan-quoc.png" alt="" class="payment_info" />
				<img src="<?php echo bloginfo('template_directory') ?>/images/hoan-tra.png" alt="" class="payment_info" /> -->
				<?php  echo get_search_form(); ?>
			</div><!-- end .container -->

			<div id="menu">
				<?php 

				$menuClass = 'nav superfish clearfix ';
				$menuID = 'secondary-menu';
				$secondaryNav = '';
				if (function_exists('wp_nav_menu')) {
					$secondaryNav = wp_nav_menu( array(
						'menu' => 'Nav_Menu',
						'container' => '',
						'menu_class' => $menuClass,
						'menu_id' => $menuID,
						'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s' 
											// chú ý ở đây bỏ mất </ul>

			 		)); 					
				};
				
				echo $secondaryNav;
					if ( is_user_logged_in() ) {
					//Menu này chỉ xuất hiện khi đã login
					$LoginNav = '';
					if (function_exists('wp_nav_menu')) {
						$secondaryNav = wp_nav_menu( array(
							'menu' => 'Login_Menu',
							'container' => '',
							'items_wrap' => '%3$s </ul>' // chú ý ở đây thêm </ul>
				 		)); 					
					};
					
					echo $LoginNav;
				}else{
						//nếu chưa đăng nhập thì hiện nút đăng nhập/đăng ký
					?>
					<li class='login menu-item' style='float:right;'> 
						<a class='sf-with-ul' 
						href='<?php echo esc_url( home_url( '/dang-nhap' ) ); ?>'>Đăng nhập / Đăng ký </a>
					</li>;
					</ul>
				<?php } ?>	
			</div> <!-- end #menu -->

		</div><!-- end #header -->
		<?php if(is_home()){
			include(TEMPLATEPATH. '/includes/featured.php');
		 } ?>	

		<div id="content" >
			<div class="container clearfix">
				<?php if(is_home()) {}
						//include(TEMPLATEPATH.'/includes/scroller.php');
					//else
						//do_action('mv_breadcrumb');					
				?>	
				<div id="main-area">
					<div id="main-content" class="clearfix">	
				
